<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
        <title></title>
            <script src="http://i.irenren.net/jquery-1.8.0.min.js"></script>
            </head>
            <body>
            <textarea id="text" style="width:500px; height:500px;float:left;"></textarea>
            <pre id="result" style="width:500px; height:500px;float:left;"></pre>
            <pre id="result2" style="width:500px; height:500px;float:left;"></pre>
            <div style="clear: both"></div>
            <div>
                        <button id="run">Go</button>
                </div>



                <script>
    $('#run').click(function(){
                            var text = $('#text').val();
                                    var arr = text.split("\n");
                                            var times = [];
                                                    var contents = [];

                                                            arr.forEach(function(d){
                                                                                var s = d.replace(/ /g,"");
                                                                                            if(s=='' || /^[0-9]+$/.test(s)){
                                                                                                            return ;
                                                                                                                        }
                                                                                                                                    if(/^[0-9]{2}:[0-9]{2}:[0-9]{2},/.test(d)){
                                                                                                                                                    times.push(d);
                                                                                                                                                                }else {
                                                                                                                                                                                contents.push(d);
                                                                                                                                                                                            }
                                                                                                                                                                                                    })

                                                                    $('#result').html(times.join("\n"));
                                                                            $('#result2').html(contents.join("\n"));

                                                                                    console.log(times);



                                                                                            console.log(contents);


                                                                                                })

                </script>
                </body>
                </html>
